﻿@*
    Copyright 2014 Francois Karman

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*@
@model Quartz.WebManager.Model.JobDetail
@{
    Quartz.WebManager.Model.Trigger trigger = Model.Triggers.First();
}
<h1>The job is created and scheduled</h1>
<p>
    <strong>Congratulations!</strong> Your job is created and already scheduled. Here is a summary of what you just done:
</p>
<h2>The task</h2>
<dl class="dl-horizontal">
    <dt>Type of job</dt>
    <dd>@Model.Definition.DisplayName</dd>
    <dt>Group of the task</dt>
    <dd>@Model.Group</dd>
    <dt>Name of the task</dt>
    <dd>@Model.Name</dd>
    <dt>Description</dt>
    <dd>@Model.Description</dd>
</dl>
<h2>Its trigger</h2>
<dl class="dl-horizontal">
    <dt>Group of the trigger</dt>
    <dd>@trigger.Group</dd>
    <dt>Name of the trigger</dt>
    <dd>@trigger.Name</dd>
    <dt>Description</dt>
    <dd>@trigger.Description</dd>
    <dt>Start time</dt>
    <dd>@trigger.StartTimeUtc</dd>
    <dt>End time</dt>
    <dd>@trigger.EndTimeUtc</dd>
    <dt>Misfire instruction</dt>
    <dd>@trigger.MisfireInstruction</dd>
    <dt>Cron expression</dt>
    <dd>@trigger.CronExpression</dd>
</dl>
<h2>And now?</h2>
<ul>
    <li>
        @Html.ActionLink("View the job in detail", "ViewJobDetail", "Home", new { name = Model.Name, group = Model.Group })
    </li>
    <li>
        @Html.ActionLink("Edit the job", "Edit", "Job", new { name = Model.Name, group = Model.Group })
    </li>
    <li>
        @Html.ActionLink("Add a new trigger", "Add", "Trigger", new { name = Model.Name, group = Model.Group })
    </li>
    <li>
        @Html.ActionLink("Come back to the jobs list", "Index", "Home")
    </li>
</ul>